package cn.com.surker.report.dao;

import cn.com.surker.report.entity.ReportPayment;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 付款统计 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2023-07-27
 */
public interface ReportPaymentDao extends BaseMapper<ReportPayment> {

    /**
     * 查询付款统计信息
     * @param orgId
     * @param startTime
     * @param endTime
     * @return
     */
    List<Map<String, Object>> queryPaymentByOrg(Long orgId, String startTime, String endTime);

    /**
     *
     * @param orgId
     * @param today
     * @param type
     * @return
     */
    ReportPayment queryByToday(Long orgId, String today, Integer type);

    /**
     * 根据日期查询总数
     * @param today
     * @return
     */
    Integer queryByTodayTotal(String today);
}
